﻿using QianJiaInfo.Models;
using System.Linq;
using System.Threading.Tasks;

namespace QianJiaInfo.Service
{
    //必须用泛型
    public interface IManageServices<T> where T : CommonModel
    {
        Task<bool> AddAsync(T Context);
        Task<T> UpdateAsync(T Context);
        Task<bool> DeleteAsync(T Context);
        Task<IQueryable<T>> QueryAsync(T Context)   ;

    }
}
